<?php
class ORMpz_plugin_instance {
  public function toObj($args) {
    $obj = new stdClass();
    if (isset($args->track_id)) {
      $obj->track_id =  $args->track_id;
    }
    if (isset($args->menu_id)) {
      $obj->menu_id =  $args->menu_id;
    }
    if (isset($args->plugin_id)) {
      $obj->plugin_id =  $args->plugin_id;
    }
    if (isset($args->width)) {
      $obj->width =  $args->width;
    }
    if (isset($args->height)) {
      $obj->height =  $args->height;
    }
    if (isset($args->scrolling)) {
      $obj->scrolling =  $args->scrolling;
    }
    return $obj;
  }
}
?>
